package com.ruoyi.business.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 横幅广告对象 jt_banner
 *
 * @author Alan Zhang
 * @date 2025-04-03
 */
public class JtBanner extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 横幅广告id */
    private Long bannerId;

    /** 标题名称 */
    @Excel(name = "标题名称")
    private String titleName;

    /** 图片路径 */
    @Excel(name = "图片路径")
    private String imageUrl;

    /** 产品id */
    @Excel(name = "产品id")
    private Long productId;

    /** 链接 */
    @Excel(name = "链接")
    private String linkUrl;

    /** 排序 */
    @Excel(name = "排序")
    private Integer sortVal;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private Integer status;

    public void setBannerId(Long bannerId)
    {
        this.bannerId = bannerId;
    }

    public Long getBannerId()
    {
        return bannerId;
    }

    public void setTitleName(String titleName)
    {
        this.titleName = titleName;
    }

    public String getTitleName()
    {
        return titleName;
    }

    public void setImageUrl(String imageUrl)
    {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl()
    {
        return imageUrl;
    }

    public void setProductId(Long productId)
    {
        this.productId = productId;
    }

    public Long getProductId()
    {
        return productId;
    }

    public void setLinkUrl(String linkUrl)
    {
        this.linkUrl = linkUrl;
    }

    public String getLinkUrl()
    {
        return linkUrl;
    }

    public void setSortVal(Integer sortVal)
    {
        this.sortVal = sortVal;
    }

    public Integer getSortVal()
    {
        return sortVal;
    }

    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("bannerId", getBannerId())
                .append("titleName", getTitleName())
                .append("imageUrl", getImageUrl())
                .append("productId", getProductId())
                .append("linkUrl", getLinkUrl())
                .append("sortVal", getSortVal())
                .append("status", getStatus())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
